From 21e108b5fff02d1c38f1d7b047ec974799a43a3d Mon Sep 17 00:00:00 2001 From: Roan Kattouw Date: Sat, 21 Jun 2008 15:06:40 +0000 Subject: [PATCH] Oops, gotta use $exp here --- includes/api/ApiMain.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/api/ApiMain.php b/includes/api/ApiMain.php index b0096d0c60..69124a1650 100644 --- a/includes/api/ApiMain.php +++ b/includes/api/ApiMain.php @@ -273,7 +273,7 @@ class ApiMain extends ApiBase { // Set the cache expiration at the last moment, as any errors may change the expiration. // if $this->mSquidMaxage == 0, the expiry time is set to the first second of unix epoch $exp = min($smaxage, $maxage); - $expires = $exp == 0 ? 1 : time() + $this->mSquidMaxage; + $expires = ($exp == 0 ? 1 : time() + $exp); header('Expires: ' . wfTimestamp(TS_RFC2822, $expires)); header('Cache-Control: s-maxage=' . $smaxage . ', must-revalidate, max-age=' . $maxage); -- 2.20.1